package cn.itrip.dao.mapper;

import cn.itrip.beans.pojo.ItripImage;

import java.util.List;

public interface ItripImageMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 增加评论图片
     * @param record
     * @return
     */
    int insert(ItripImage record)throws  Exception;

    int insertSelective(ItripImage record)throws  Exception;

    ItripImage selectByPrimaryKey(Long id)throws  Exception;

    int updateByPrimaryKeySelective(ItripImage record)throws  Exception;

    int updateByPrimaryKey(ItripImage record)throws  Exception;

    /**
     * 获取酒店图片
     * @param id
     * @return
     */
    List<ItripImage> selectImg(long id)throws  Exception;

    List<ItripImage> getHotelRoomImg(long id)throws  Exception;

}